// 获取团队成员数据并渲染
 document.addEventListener('DOMContentLoaded', function() {
     fetch('/api/team-members')
         .then(response => {
             if (!response.ok) {
                 throw new Error('网络响应不正常');
             }
             return response.json();
         })
         .then(members => {
             const container = document.getElementById('team-members-list');
              
             if (members.length === 0) {
                 container.innerHTML = '<p>暂无团队成员数据</p>';
                 return;
             }
              
             members.forEach(member => {
                 const memberDiv = document.createElement('div');
                 memberDiv.className = 'team-member';
                 memberDiv.innerHTML = `
                     <div class="member-photo">
                         <img src="${member.photo || 'https://via.placeholder.com/120'}" alt="${member.name}">
                     </div>
                     <h3>${member.name}</h3>
                     <div class="responsibility">${member.responsibility}</div>
                     <div class="introduction">${member.introduction}</div>
                 `;
                 container.appendChild(memberDiv);
             });
         })
         .catch(error => {
             console.error('获取团队成员数据时出错:', error);
             document.getElementById('team-members-list').innerHTML = '<p>获取团队成员数据失败</p>';
         });
 });